var logRoot = '/Users/zhangguoyu/Develope/NodeWorkspace/wanbat/data/logs';

module.exports = {
  expired: 3 * 24 * 3600,
  logPath: logRoot,
  appenders: [
    {
      type: 'console',
      category: 'console',
      maxLogSize: 2018,
      filename: logRoot + '/bat_logs.log'
    },
    {
      type: 'dateFile',
      filename: logRoot + '/bat_app',
      maxLogSize: 1024,
      pattern: "_yyyy-MM-dd.log",
      category: 'app',
      alwaysIncludePattern: true
    },
    {
      type: 'dateFile',
      filename: logRoot + '/bat_page',
      maxLogSize: 1024,
      pattern: "_yyyy-MM-dd.log",
      category: 'page',
      alwaysIncludePattern: true
    },
    {
      type: 'dateFile',
      filename: logRoot + '/bat_content',
      maxLogSize: 1024,
      pattern: "_yyyy-MM-dd.log",
      category: 'content',
      alwaysIncludePattern: true
    },
    {
      type: 'dateFile',
      filename: logRoot + '/bat_event',
      maxLogSize: 1024,
      pattern: "_yyyy-MM-dd.log",
      category: 'event',
      alwaysIncludePattern: true
    },
    {
      type: 'dateFile',
      filename: logRoot + '/bat_order',
      maxLogSize: 1024,
      pattern: "_yyyy-MM-dd.log",
      category: 'order',
      alwaysIncludePattern: true
    }
  ],
  replaceConsole: true,
  levels: {
    app: 'trace',
    page: 'trace',
    content: 'trace',
    event: 'trace',
    order: 'trace'
  }
};
